import { routerRedux } from 'dva/router';

export default {
  namespace: 'mymessage',

  state: {
    list: [],
  },

  effects: {
    *fetchList(_, { call, put }) {
      
      yield put(routerRedux.push('/'))
    },
  },
  reducers: {
    getList(state, {payload}) {
      return {
        ...state,
        ...payload,
      };
    },
  },
};
